package Action;

import entity.hero;
import com.baizhi.service.heroService;
import com.baizhi.service.service.impl.PageService;
import util.PageBean;

public class heroAction {
    private PageBean<hero> p=new PageBean<hero>();
    private String preName;

    public String getPreName() {
        return preName;
    }

    public void setPreName(String preName) {
        this.preName = preName;
    }

    public PageBean<hero> getP() {
        return p;
    }

    public void setP(PageBean<hero> p) {
        this.p = p;
    }

    public String page(){
        heroService  a=new PageService();
        p = a.find(p,preName);
        System.out.println(p);
        return "success";

    }
}
